package com.netease.research.service;

import com.netease.research.Vo.ProductListVo;
import com.netease.research.common.ServerResponse;
import com.netease.research.pojo.Product;

import java.util.List;

public interface IProductService {
    ServerResponse<List<ProductListVo>> listAll();

    ServerResponse<List<ProductListVo>> listUnBuy();

    ServerResponse<Product> publishProduct(Product product);

    ServerResponse<Product> show(Integer productId);

    ServerResponse<Product> edit(Product product);

    ServerResponse<Product> delete(Integer id);
}
